# -*- coding: utf-8 -*-
import datetime
import time

from odoo import api, fields, models
import logging
_logger = logging.getLogger(__name__)


class View(models.Model):
    _inherit = 'ir.ui.view'

    arch_combine = fields.Text(compute='_compute_arch_combine',
                               string='View Architecture')

    def _compute_arch_combine(self):
        _logger.info('_compute_arch_combine')
        for view in self:
            arch_combine = view.read_combined(['arch'])['arch']
            _logger.info(arch_combine)
            view.arch_combine = arch_combine
